import WebHeader from '../components/WebHeader'
import WebFooter from '../components/WebFooter'

export default {
  components: { WebHeader, WebFooter },
  data() {
    return {
      user: undefined,
    }
  },

  created(){
    const user = JSON.parse(localStorage.getItem('user'))
    this.user = user
  },

  methods: {
    coming(){
      this.$message('即将上架，敬请期待');
    },
    goQuote(name){
      this.$router.push({ path:'/quote/' + name})
    },
    reg(){
      this.$alert('<img src="https://cdn.qianqianying.com/yundingfeng/qrcode.jpg" />', '请关注雲鼎峰公众号完成注册', {
        dangerouslyUseHTMLString: true,
        showConfirmButton: false,
        center: true
      })
    }
  }
}
